package org.particlethink.request;

import io.swagger.v3.oas.annotations.media.Schema;
import org.particlethink.model.Acceptance;

import java.util.List;

public class AcceptanceRequest {
    @Schema(description = "发货单id")
    private int deliverId; //发货单
    @Schema(description = "图片")
    private List<String> images;//图片
    @Schema(description = "进场照片")
    private List<String> arriveImages;//图片
    @Schema(description = "车牌")
    private String carNumber;//车牌
    @Schema(description = "处理意见")
    private String suggestion;//处理意见


    private List<DeliveryGood> goods;


    public Acceptance toAcceptance(int userID) {
        return new Acceptance(this.images, this.arriveImages, this.carNumber, userID, suggestion);
    }


    public List<DeliveryGood> getGoods() {
        return goods;
    }

    public void setGoods(List<DeliveryGood> goods) {
        this.goods = goods;
    }

    public int getDeliverId() {
        return deliverId;
    }

    public void setDeliverId(int deliverId) {
        this.deliverId = deliverId;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public List<String> getArriveImages() {
        return arriveImages;
    }

    public void setArriveImages(List<String> arriveImages) {
        this.arriveImages = arriveImages;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }
}

